﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IDrinking {

        /// <summary>
        /// Insert new DrinkingEnt
        /// </summary>
        /// <param name="item">DrinkingEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(DrinkingEnt item);
        /// <summary>
        /// Update DrinkingEnt
        /// </summary>
        /// <param name="item">DrinkingEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(DrinkingEnt item);
        /// <summary>
        /// Delete a DrinkingEnt
        /// </summary>
        /// <param name="iD">ID of DrinkingEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all DrinkingEnt
        /// </summary>
        /// <returns>return a list of DrinkingEnt (empty list if no DrinkingEnt exists)</returns>
        List<DrinkingEnt> GetAll();
    }
}
